/*
 * @Author: your name
 * @Date: 2021-11-11 18:01:28
 * @LastEditTime: 2021-11-12 11:25:57
 * @LastEditors: Please set LastEditors
 * @Description: 定义全局的state
 * @FilePath: \flutter_redux\redux_example\lib\store\state.dart
 */
// 1.定义全局的state
// int count;
// List<Item> lists;
// Item {int id, String value}

class Item {
  final int? id;
  final String value;

  Item({this.id, required this.value});
}

class AppState {
  final int count;
  final List<Item> lists;

  AppState({this.count = 0, this.lists = const <Item>[]});

  AppState.initState()
      : count = 0,
        lists = const <Item>[];
}
